<%@ page contentType="text/html;charset=UTF-8" %>

<%--JSTL 标签库，JSP页面中使用Jstl提供的标签库来实现各种通用功能--%>
<%--taglib指令是用来导入标签库的--%>
<%@ taglib prefix="custom" uri="http://xyz.lisys/taglib/custom" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>SSH</title>
</head>
<body>
<h1>Hello SSH !</h1>

<custom:hello name="SystemLight"/>

<a href="${ctx}/play/view.do">实验页面</a>
<a href="${ctx}/demo/view.do">测试页面</a>
<a href="${ctx}/user/search.do">搜索用户</a>
<a href="${ctx}/user/search.do?id=1">搜索默认用户</a>

<c:if test="${fn:contains('Hello World', 'World')}">
    <div>字符串包含 "World"</div>
</c:if>

<c:if test="${'Hello World'.contains('World')}">
    <div>字符串包含 "World"</div>
</c:if>

</body>
</html>
